#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_mainwindow.h"

#include<opencv2/opencv.hpp>


class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = Q_NULLPTR);

private:
    inline QImage MatToQImage(const cv::Mat& mat);

private slots:
    void on_openImg_clicked();

private:
    Ui::MainWindowClass ui;
    cv::Mat src, dst;
};
